export const TESTSMARTDR = "TESTSMARTDR"
export const WXGETEXAMPLE = "WXGETEXAMPLE"
export const WXGETSUBPRODUCT = "WXGETSUBPRODUCT"
export const ZHCTPRODUCTCONF = "ZHCTPRODUCTCONF"
export const WXZHCTGETLIST = "WXZHCTGETLIST"
export const WSTIMIESELCTED = "WSTIMIESELCTED"; //外送时间选择
export const gosmartdr = () => ({
    type: TESTSMARTDR
})

export const getexample = () => ({
    wxget: {
        type: WXGETEXAMPLE
    },
    url: "asd/asdd"
})

export const wxGetSubProduct = (productCode) => ({
    wxget: {
        type: WXGETSUBPRODUCT
    },
    url: "app/product/" + productCode
})

export const wxzhctProductConf = (subp) => ({
    type: ZHCTPRODUCTCONF,
    data: subp
})

export const wxzhctGetList = (selectData) => ({
    wxpost: {
        type: WXZHCTGETLIST
    },
    url: "o2o/sly/list/zhct",
    data: selectData,
    pathKey: 'wxApiPath'
})

export const wsTimeSelect = (data)=>(
    {
        type: WSTIMIESELCTED,
        data: data
    }
)